import request from "@/config/utils/request";
export function processDefineList(data) {
  return request({
    url: "/apis/smp/wfc/define/query", // 查询流程定义 organizationId机构Id processDisplayName 流程显示名称
    method: "post",
    data
  });
}

export function addProcessDefine(data) {
  // 新建流程
  return request({
    url: "/apis/smp/wfc/define/add", // 新建流程
    method: "post",
    data
  });
}

export function processTemplateList(data) {
  // 查询流程实例模板

  return request({
    url: "/apis/smp/workflow/processDefineTemplate/query", // 查询流程实例模板
    method: "post",
    data
  });
}

export function getWfDict(data) {
  // 根据orgId查询流程审批业务
  return request({
    url: "/apis/smp/workflow/processDefine/getWfDict", // 查询流程实例模板
    method: "post",
    data
  });
}
export function getDictApi(data) {
  // code  getDictApi ({code:""})
  return request({
    url: "/apis/smp/wfc/dict/get", // pmc 组织机构树
    method: "post",
    data
  });
}

export function searchList(data) {
  // code  getDictApi ({code:""})
  return request({
    url: "/apis/smp/org/searchListv1",
    method: "post",
    data
  });
}
